﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NerdDinner.Web.Models.Repository;
using NerdDinner.Web.Helpers;

namespace NerdDinner.Web.Controllers
{
    [HandleElmahError]
    public class HomeController : Controller
    {

        public ActionResult Index()
        {
            ViewData["PageTitle"] = "Home";
            ViewData["Message"] = "Welcome to the Dinner Finder!";

            //int zero = 0;
            //int error = 100 / zero;

            return View( "Index" );
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
